package com.bjpowernode.p2padmin.user.service.impl;

import com.bjpowernode.p2padmin.user.mapper.RoleInfoMapper;
import com.bjpowernode.p2padmin.user.model.RoleInfo;
import com.bjpowernode.p2padmin.user.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * ClassName:RoleServiceImpl
 * Package:com.bjpowernode.p2padmin.user.service.impl
 * Description:TODO描述
 *
 * @date:2020/4/8 16:54
 * @author:CC
 */

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleInfoMapper roleInfoMapper;

    @Override
    public List<RoleInfo> selectRolesAll() {

        List<RoleInfo> roleList=roleInfoMapper.selectAll();

        return roleList;

    }

    @Override
    public List<Map> initPermissionTreeByRoleId(Integer roleId) {



        System.out.println(roleId);
        return null;
    }
}
